package com.ruoyi.canteen.service;

import java.util.List;
import com.ruoyi.canteen.domain.CanteenCpOrderDetail;
import com.ruoyi.canteen.vo.CanteenOrderItemVo;

/**
 * 订单明细Service接口
 * 
 * @author zhangw
 * @date 2021-09-19
 */
public interface ICanteenCpOrderDetailService 
{
    /**
     * 查询订单明细
     * 
     * @param id 订单明细主键
     * @return 订单明细
     */
    public CanteenCpOrderDetail selectCanteenCpOrderDetailById(Long id);

    /**
     * 查询订单明细列表
     * 
     * @param canteenCpOrderDetail 订单明细
     * @return 订单明细集合
     */
    public List<CanteenCpOrderDetail> selectCanteenCpOrderDetailList(CanteenCpOrderDetail canteenCpOrderDetail);

    /**
     * 新增订单明细
     * 
     * @param canteenCpOrderDetail 订单明细
     * @return 结果
     */
    public int insertCanteenCpOrderDetail(CanteenCpOrderDetail canteenCpOrderDetail);

    /**
     * 修改订单明细
     * 
     * @param canteenCpOrderDetail 订单明细
     * @return 结果
     */
    public int updateCanteenCpOrderDetail(CanteenCpOrderDetail canteenCpOrderDetail);

    /**
     * 批量删除订单明细
     * 
     * @param ids 需要删除的订单明细主键集合
     * @return 结果
     */
    public int deleteCanteenCpOrderDetailByIds(Long[] ids);

    /**
     * 删除订单明细信息
     * 
     * @param id 订单明细主键
     * @return 结果
     */
    public int deleteCanteenCpOrderDetailById(Long id);

    /**
     * 通过主订单id，查询子订单详情
     * @param orderId
     * @return
     */
    public List<CanteenOrderItemVo> selectOrderDetailListByOrderId(Long orderId);

}
